package com.bimowu.first.service;

import com.bimowu.first.model.Product;
import com.bimowu.first.utils.bean.CommonQueryBean;

import java.util.List;

public interface ProductService {
    /**
     * 查询全部的商品信息.
     */
    List<Product> listShowProduct();
    /**
     * 根据productId查询商品信息.
     */


    Product findByProductId(long productId);
    List<Product> list4Page(Product record, CommonQueryBean query);

    long count(Product record);

    int save(Product product);

    Product  selectByPrimaryKey (  Long id );

    void updateItem(Product product);

    int deleteByPrimaryKey(Long id);
    List<Product> listByOrderNo(String orderNo );
}
